﻿using Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Metadata;
using Mono.Linker.Tests.Cases.Symbols.Dependencies;

namespace Mono.Linker.Tests.Cases.Symbols
{
    [IgnoreTestCase("Test relies on checked-in binaries: https://github.com/dotnet/runtime/issues/78344")]
    [SetupLinkerArgument("--skip-unresolved", "true")]
    [Reference("Dependencies/LibraryWithMdb/LibraryWithMdb.dll")]
    [ReferenceDependency("Dependencies/LibraryWithMdb/LibraryWithMdb.dll.mdb")]
    [SetupLinkerLinkSymbols("true")]

    [RemovedAssembly("LibraryWithMdb.dll")]
    [RemovedSymbols("LibraryWithMdb.dll")]
    public class ReferenceWithMdbDeleteActionAndSymbolLinkingEnabled
    {
        static void Main()
        {
        }

        /// <summary>
        /// By not using this method we will cause the trimmer to delete the reference
        /// </summary>
        static void UnusedCodePath()
        {
            LibraryWithMdb.SomeMethod();
        }
    }
}
